package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntegralVo;
import cn.wolfcode.domain.PayVo;
import cn.wolfcode.domain.RefundVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: Ruomeng
 * @Date: 2025/2/19
 * @Description : shopseckill
 * @Version: 1.0
 */
@FeignClient(name = "intergral-service")
public interface IntegralFeignApi {

    @PostMapping("/integral/prePay")
    Result<String> prePay(@RequestBody OperateIntegralVo operateIntegralVo);

    @PostMapping("/integral/refund")
    Result<Boolean> refund(@RequestBody RefundVo refundVo);

}
